
Ext.define('app.store.RepeatResource', {
    extend: 'Ext.data.Store',
    requires: [
        'app.model.GridModel',
        'Ext.data.proxy.Ajax',
        'Ext.data.reader.Json'
    ],
	pageSize: 50,
    constructor: function(cfg) {
        var me = this;
        cfg = cfg || {};
        me.callParent([Ext.apply({
            model: 'app.model.GridModel',
            proxy: {
                type: 'ajax',
                url: 'queryRepeatResources',
                reader: {
                	totalProperty:'totalSize',
                    type: 'json',
                    root: 'list'
                }
            },  
    		remoteSort: true
        }, cfg)]);
    }/*,
	autoLoad: true*/
});
